package com.young4j.springdemo.domain;

import org.springframework.data.annotation.Id;

import java.io.Serializable;

/**
 * @Description
 * @Author yf
 * @Date 2018/12/26 14:19
 **/
public class Student implements Serializable {
    @Id
    private Long id;
    private String name;

    public Student(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Student() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
